<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="app">
      <com-a :list='list'></com-a>
  </div>
  <template id="tmp">
      <div>
          <h1 v-for='(item,index) in list'>{{item}}</h1>
      </div>
  </template>
  <script src="./vue.js"></script>
  <script>

const comA = {
    data() {
        return {
            // list:[]
        }
    },
    methods: {

    },
    template:"#tmp",
    props:['list']
}
      
    var vm = new Vue({
      el:'#app',
      data:{
          list:[1,2,3,4,5,6]
      },
     components:{
         comA
     }
     });
  </script>
</body>
</html>
